<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.8"/>
<title>AndBase开发框架: com.google.gson.JsonArray类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="ic_launcher.png"/></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">AndBase开发框架
   &#160;<span id="projectnumber">1.6</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.8 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>首页</span></a></li>
      <li><a href="pages.html"><span>相关页面</span></a></li>
      <li><a href="namespaces.html"><span>命名空间</span></a></li>
      <li class="current"><a href="annotated.html"><span>类</span></a></li>
      <li><a href="files.html"><span>文件</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="搜索" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>类列表</span></a></li>
      <li><a href="classes.html"><span>类索引</span></a></li>
      <li><a href="hierarchy.html"><span>类继承关系</span></a></li>
      <li><a href="functions.html"><span>类成员</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>全部</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>类</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>命名空间</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>文件</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>函数</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>变量</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>枚举值</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>页</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespacecom.html">com</a></li><li class="navelem"><a class="el" href="namespacecom_1_1google.html">google</a></li><li class="navelem"><a class="el" href="namespacecom_1_1google_1_1gson.html">gson</a></li><li class="navelem"><a class="el" href="classcom_1_1google_1_1gson_1_1_json_array.html">JsonArray</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pri-attribs">Private 属性</a> &#124;
<a href="classcom_1_1google_1_1gson_1_1_json_array-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">com.google.gson.JsonArray类 参考</div>  </div>
</div><!--header-->
<div class="contents">
<div class="dynheader">
类 com.google.gson.JsonArray 继承关系图:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classcom_1_1google_1_1gson_1_1_json_array.png" usemap="#com.google.gson.JsonArray_map" alt=""/>
  <map id="com.google.gson.JsonArray_map" name="com.google.gson.JsonArray_map">
<area href="classcom_1_1google_1_1gson_1_1_json_element.html" alt="com.google.gson.JsonElement" shape="rect" coords="0,0,183,24"/>
</map>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:aae937cffc42633a44c9547992aeaf7df"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1google_1_1gson_1_1_json_array.html#aae937cffc42633a44c9547992aeaf7df">JsonArray</a> ()</td></tr>
<tr class="separator:aae937cffc42633a44c9547992aeaf7df"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9ef58e6e4cac5a22327fe55ab36e9ff6"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1google_1_1gson_1_1_json_array.html#a9ef58e6e4cac5a22327fe55ab36e9ff6">add</a> (<a class="el" href="classcom_1_1google_1_1gson_1_1_json_element.html">JsonElement</a> element)</td></tr>
<tr class="separator:a9ef58e6e4cac5a22327fe55ab36e9ff6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af07ce6d3c573731c657cd470c4bd7541"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1google_1_1gson_1_1_json_array.html#af07ce6d3c573731c657cd470c4bd7541">addAll</a> (<a class="el" href="classcom_1_1google_1_1gson_1_1_json_array.html">JsonArray</a> array)</td></tr>
<tr class="separator:af07ce6d3c573731c657cd470c4bd7541"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ade6a26f0014088241820851da693689f"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1google_1_1gson_1_1_json_array.html#ade6a26f0014088241820851da693689f">size</a> ()</td></tr>
<tr class="separator:ade6a26f0014088241820851da693689f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0852e63f04b2127d923a56f8806b7423"><td class="memItemLeft" align="right" valign="top">Iterator&lt; <a class="el" href="classcom_1_1google_1_1gson_1_1_json_element.html">JsonElement</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1google_1_1gson_1_1_json_array.html#a0852e63f04b2127d923a56f8806b7423">iterator</a> ()</td></tr>
<tr class="separator:a0852e63f04b2127d923a56f8806b7423"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a711428c84490ffb511ed73b7a1b1308e"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classcom_1_1google_1_1gson_1_1_json_element.html">JsonElement</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1google_1_1gson_1_1_json_array.html#a711428c84490ffb511ed73b7a1b1308e">get</a> (int i)</td></tr>
<tr class="separator:a711428c84490ffb511ed73b7a1b1308e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a70803c437430feb3c2c8db47bf2cd730"><td class="memItemLeft" align="right" valign="top">Number&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1google_1_1gson_1_1_json_array.html#a70803c437430feb3c2c8db47bf2cd730">getAsNumber</a> ()</td></tr>
<tr class="separator:a70803c437430feb3c2c8db47bf2cd730"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af9152df211f288c8b1b608894f036f4b"><td class="memItemLeft" align="right" valign="top">String&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1google_1_1gson_1_1_json_array.html#af9152df211f288c8b1b608894f036f4b">getAsString</a> ()</td></tr>
<tr class="separator:af9152df211f288c8b1b608894f036f4b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a23d3658ce777f947236d168eecee5708"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1google_1_1gson_1_1_json_array.html#a23d3658ce777f947236d168eecee5708">getAsDouble</a> ()</td></tr>
<tr class="separator:a23d3658ce777f947236d168eecee5708"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae12953398be9ac0f87d9bbfef7ba7956"><td class="memItemLeft" align="right" valign="top">BigDecimal&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1google_1_1gson_1_1_json_array.html#ae12953398be9ac0f87d9bbfef7ba7956">getAsBigDecimal</a> ()</td></tr>
<tr class="separator:ae12953398be9ac0f87d9bbfef7ba7956"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac6e4389b3dbfa9347a9c80892c8c77cf"><td class="memItemLeft" align="right" valign="top">BigInteger&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1google_1_1gson_1_1_json_array.html#ac6e4389b3dbfa9347a9c80892c8c77cf">getAsBigInteger</a> ()</td></tr>
<tr class="separator:ac6e4389b3dbfa9347a9c80892c8c77cf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a547332c9be208e377c7f887b9c03d708"><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1google_1_1gson_1_1_json_array.html#a547332c9be208e377c7f887b9c03d708">getAsFloat</a> ()</td></tr>
<tr class="separator:a547332c9be208e377c7f887b9c03d708"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa67748d4dacff98daa36672c44953fda"><td class="memItemLeft" align="right" valign="top">long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1google_1_1gson_1_1_json_array.html#aa67748d4dacff98daa36672c44953fda">getAsLong</a> ()</td></tr>
<tr class="separator:aa67748d4dacff98daa36672c44953fda"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6f052d1fd8702a9d7b66e20d97b27489"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1google_1_1gson_1_1_json_array.html#a6f052d1fd8702a9d7b66e20d97b27489">getAsInt</a> ()</td></tr>
<tr class="separator:a6f052d1fd8702a9d7b66e20d97b27489"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af9c11bfe3497f748aae1ad3681b73d1d"><td class="memItemLeft" align="right" valign="top">byte&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1google_1_1gson_1_1_json_array.html#af9c11bfe3497f748aae1ad3681b73d1d">getAsByte</a> ()</td></tr>
<tr class="separator:af9c11bfe3497f748aae1ad3681b73d1d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1a1767c7a9db1227542d3a00ef4ade17"><td class="memItemLeft" align="right" valign="top">char&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1google_1_1gson_1_1_json_array.html#a1a1767c7a9db1227542d3a00ef4ade17">getAsCharacter</a> ()</td></tr>
<tr class="separator:a1a1767c7a9db1227542d3a00ef4ade17"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a16186e285b35c1740b7a7cc046307640"><td class="memItemLeft" align="right" valign="top">short&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1google_1_1gson_1_1_json_array.html#a16186e285b35c1740b7a7cc046307640">getAsShort</a> ()</td></tr>
<tr class="separator:a16186e285b35c1740b7a7cc046307640"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abc29f7cc7b979096f5cd95e525dd8310"><td class="memItemLeft" align="right" valign="top">boolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1google_1_1gson_1_1_json_array.html#abc29f7cc7b979096f5cd95e525dd8310">getAsBoolean</a> ()</td></tr>
<tr class="separator:abc29f7cc7b979096f5cd95e525dd8310"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5ac4bd4e13f514344c4929d46aab626d"><td class="memItemLeft" align="right" valign="top">boolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1google_1_1gson_1_1_json_array.html#a5ac4bd4e13f514344c4929d46aab626d">equals</a> (Object o)</td></tr>
<tr class="separator:a5ac4bd4e13f514344c4929d46aab626d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:add0c429ea355f262b0b72a81fdbcead8"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1google_1_1gson_1_1_json_array.html#add0c429ea355f262b0b72a81fdbcead8">hashCode</a> ()</td></tr>
<tr class="separator:add0c429ea355f262b0b72a81fdbcead8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_classcom_1_1google_1_1gson_1_1_json_element"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classcom_1_1google_1_1gson_1_1_json_element')"><img src="closed.png" alt="-"/>&#160;Public 成员函数 继承自 <a class="el" href="classcom_1_1google_1_1gson_1_1_json_element.html">com.google.gson.JsonElement</a></td></tr>
<tr class="memitem:aba67eec527d3e87cfaecf7e0fb78996b inherit pub_methods_classcom_1_1google_1_1gson_1_1_json_element"><td class="memItemLeft" align="right" valign="top">boolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1google_1_1gson_1_1_json_element.html#aba67eec527d3e87cfaecf7e0fb78996b">isJsonArray</a> ()</td></tr>
<tr class="separator:aba67eec527d3e87cfaecf7e0fb78996b inherit pub_methods_classcom_1_1google_1_1gson_1_1_json_element"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:accc3683bef9e57bd35ef9a4f84cfdfd4 inherit pub_methods_classcom_1_1google_1_1gson_1_1_json_element"><td class="memItemLeft" align="right" valign="top">boolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1google_1_1gson_1_1_json_element.html#accc3683bef9e57bd35ef9a4f84cfdfd4">isJsonObject</a> ()</td></tr>
<tr class="separator:accc3683bef9e57bd35ef9a4f84cfdfd4 inherit pub_methods_classcom_1_1google_1_1gson_1_1_json_element"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8309c61ca804aa6791bb98615f632ffc inherit pub_methods_classcom_1_1google_1_1gson_1_1_json_element"><td class="memItemLeft" align="right" valign="top">boolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1google_1_1gson_1_1_json_element.html#a8309c61ca804aa6791bb98615f632ffc">isJsonPrimitive</a> ()</td></tr>
<tr class="separator:a8309c61ca804aa6791bb98615f632ffc inherit pub_methods_classcom_1_1google_1_1gson_1_1_json_element"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2ced30d29f8df0a1f25bd7f4ae27a07d inherit pub_methods_classcom_1_1google_1_1gson_1_1_json_element"><td class="memItemLeft" align="right" valign="top">boolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1google_1_1gson_1_1_json_element.html#a2ced30d29f8df0a1f25bd7f4ae27a07d">isJsonNull</a> ()</td></tr>
<tr class="separator:a2ced30d29f8df0a1f25bd7f4ae27a07d inherit pub_methods_classcom_1_1google_1_1gson_1_1_json_element"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a01b87a509ef70d484134407a821df874 inherit pub_methods_classcom_1_1google_1_1gson_1_1_json_element"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classcom_1_1google_1_1gson_1_1_json_object.html">JsonObject</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1google_1_1gson_1_1_json_element.html#a01b87a509ef70d484134407a821df874">getAsJsonObject</a> ()</td></tr>
<tr class="separator:a01b87a509ef70d484134407a821df874 inherit pub_methods_classcom_1_1google_1_1gson_1_1_json_element"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a23e0f4948cf60ffaf39d1e1ddb7c9db5 inherit pub_methods_classcom_1_1google_1_1gson_1_1_json_element"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classcom_1_1google_1_1gson_1_1_json_array.html">JsonArray</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1google_1_1gson_1_1_json_element.html#a23e0f4948cf60ffaf39d1e1ddb7c9db5">getAsJsonArray</a> ()</td></tr>
<tr class="separator:a23e0f4948cf60ffaf39d1e1ddb7c9db5 inherit pub_methods_classcom_1_1google_1_1gson_1_1_json_element"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a75e7e0206f4d4cdf9732d3bec97b45e4 inherit pub_methods_classcom_1_1google_1_1gson_1_1_json_element"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classcom_1_1google_1_1gson_1_1_json_primitive.html">JsonPrimitive</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1google_1_1gson_1_1_json_element.html#a75e7e0206f4d4cdf9732d3bec97b45e4">getAsJsonPrimitive</a> ()</td></tr>
<tr class="separator:a75e7e0206f4d4cdf9732d3bec97b45e4 inherit pub_methods_classcom_1_1google_1_1gson_1_1_json_element"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a35e6d1d699a7dd07d2aeeceefef88fe3 inherit pub_methods_classcom_1_1google_1_1gson_1_1_json_element"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classcom_1_1google_1_1gson_1_1_json_null.html">JsonNull</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1google_1_1gson_1_1_json_element.html#a35e6d1d699a7dd07d2aeeceefef88fe3">getAsJsonNull</a> ()</td></tr>
<tr class="separator:a35e6d1d699a7dd07d2aeeceefef88fe3 inherit pub_methods_classcom_1_1google_1_1gson_1_1_json_element"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a26a6a5a9ce600cfb4cd0b6828f7b0b81 inherit pub_methods_classcom_1_1google_1_1gson_1_1_json_element"><td class="memItemLeft" align="right" valign="top">boolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1google_1_1gson_1_1_json_element.html#a26a6a5a9ce600cfb4cd0b6828f7b0b81">getAsBoolean</a> ()</td></tr>
<tr class="separator:a26a6a5a9ce600cfb4cd0b6828f7b0b81 inherit pub_methods_classcom_1_1google_1_1gson_1_1_json_element"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aaac43094cd4723e03b82567851fb1ee7 inherit pub_methods_classcom_1_1google_1_1gson_1_1_json_element"><td class="memItemLeft" align="right" valign="top">Number&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1google_1_1gson_1_1_json_element.html#aaac43094cd4723e03b82567851fb1ee7">getAsNumber</a> ()</td></tr>
<tr class="separator:aaac43094cd4723e03b82567851fb1ee7 inherit pub_methods_classcom_1_1google_1_1gson_1_1_json_element"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3f55688dc6c1dab2e1f18c220770d447 inherit pub_methods_classcom_1_1google_1_1gson_1_1_json_element"><td class="memItemLeft" align="right" valign="top">String&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1google_1_1gson_1_1_json_element.html#a3f55688dc6c1dab2e1f18c220770d447">getAsString</a> ()</td></tr>
<tr class="separator:a3f55688dc6c1dab2e1f18c220770d447 inherit pub_methods_classcom_1_1google_1_1gson_1_1_json_element"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a63c5b57e725c7fed11cd7f524f881c4d inherit pub_methods_classcom_1_1google_1_1gson_1_1_json_element"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1google_1_1gson_1_1_json_element.html#a63c5b57e725c7fed11cd7f524f881c4d">getAsDouble</a> ()</td></tr>
<tr class="separator:a63c5b57e725c7fed11cd7f524f881c4d inherit pub_methods_classcom_1_1google_1_1gson_1_1_json_element"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0ddb0a466387c9e8712809fd0d5a4d8b inherit pub_methods_classcom_1_1google_1_1gson_1_1_json_element"><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1google_1_1gson_1_1_json_element.html#a0ddb0a466387c9e8712809fd0d5a4d8b">getAsFloat</a> ()</td></tr>
<tr class="separator:a0ddb0a466387c9e8712809fd0d5a4d8b inherit pub_methods_classcom_1_1google_1_1gson_1_1_json_element"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6884174d04bee00f55600b0d01dcdc11 inherit pub_methods_classcom_1_1google_1_1gson_1_1_json_element"><td class="memItemLeft" align="right" valign="top">long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1google_1_1gson_1_1_json_element.html#a6884174d04bee00f55600b0d01dcdc11">getAsLong</a> ()</td></tr>
<tr class="separator:a6884174d04bee00f55600b0d01dcdc11 inherit pub_methods_classcom_1_1google_1_1gson_1_1_json_element"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a79903075f6971e503f8eee51b55a1652 inherit pub_methods_classcom_1_1google_1_1gson_1_1_json_element"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1google_1_1gson_1_1_json_element.html#a79903075f6971e503f8eee51b55a1652">getAsInt</a> ()</td></tr>
<tr class="separator:a79903075f6971e503f8eee51b55a1652 inherit pub_methods_classcom_1_1google_1_1gson_1_1_json_element"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acf0cb719bd5219e0a2c17adeaad1e7bd inherit pub_methods_classcom_1_1google_1_1gson_1_1_json_element"><td class="memItemLeft" align="right" valign="top">byte&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1google_1_1gson_1_1_json_element.html#acf0cb719bd5219e0a2c17adeaad1e7bd">getAsByte</a> ()</td></tr>
<tr class="separator:acf0cb719bd5219e0a2c17adeaad1e7bd inherit pub_methods_classcom_1_1google_1_1gson_1_1_json_element"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1b03e0bb3b3fcfbd5358d230cb62f070 inherit pub_methods_classcom_1_1google_1_1gson_1_1_json_element"><td class="memItemLeft" align="right" valign="top">char&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1google_1_1gson_1_1_json_element.html#a1b03e0bb3b3fcfbd5358d230cb62f070">getAsCharacter</a> ()</td></tr>
<tr class="separator:a1b03e0bb3b3fcfbd5358d230cb62f070 inherit pub_methods_classcom_1_1google_1_1gson_1_1_json_element"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa60f644847a9fcdc23a34ffb58e66ebc inherit pub_methods_classcom_1_1google_1_1gson_1_1_json_element"><td class="memItemLeft" align="right" valign="top">BigDecimal&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1google_1_1gson_1_1_json_element.html#aa60f644847a9fcdc23a34ffb58e66ebc">getAsBigDecimal</a> ()</td></tr>
<tr class="separator:aa60f644847a9fcdc23a34ffb58e66ebc inherit pub_methods_classcom_1_1google_1_1gson_1_1_json_element"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a654514f10f9431f14333faf2e5e5f94b inherit pub_methods_classcom_1_1google_1_1gson_1_1_json_element"><td class="memItemLeft" align="right" valign="top">BigInteger&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1google_1_1gson_1_1_json_element.html#a654514f10f9431f14333faf2e5e5f94b">getAsBigInteger</a> ()</td></tr>
<tr class="separator:a654514f10f9431f14333faf2e5e5f94b inherit pub_methods_classcom_1_1google_1_1gson_1_1_json_element"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2b5af6018e067b1b5626d95f57b94bb1 inherit pub_methods_classcom_1_1google_1_1gson_1_1_json_element"><td class="memItemLeft" align="right" valign="top">short&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1google_1_1gson_1_1_json_element.html#a2b5af6018e067b1b5626d95f57b94bb1">getAsShort</a> ()</td></tr>
<tr class="separator:a2b5af6018e067b1b5626d95f57b94bb1 inherit pub_methods_classcom_1_1google_1_1gson_1_1_json_element"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a70aff0ce844684e2df39aaef22b132a7 inherit pub_methods_classcom_1_1google_1_1gson_1_1_json_element"><td class="memItemLeft" align="right" valign="top">String&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1google_1_1gson_1_1_json_element.html#a70aff0ce844684e2df39aaef22b132a7">toString</a> ()</td></tr>
<tr class="separator:a70aff0ce844684e2df39aaef22b132a7 inherit pub_methods_classcom_1_1google_1_1gson_1_1_json_element"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-attribs"></a>
Private 属性</h2></td></tr>
<tr class="memitem:a59c7df12b10d6aa0cf4a9b9b98c7d595"><td class="memItemLeft" align="right" valign="top">final List&lt; <a class="el" href="classcom_1_1google_1_1gson_1_1_json_element.html">JsonElement</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1google_1_1gson_1_1_json_array.html#a59c7df12b10d6aa0cf4a9b9b98c7d595">elements</a></td></tr>
<tr class="separator:a59c7df12b10d6aa0cf4a9b9b98c7d595"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="inherited"></a>
额外继承的成员函数</h2></td></tr>
<tr class="inherit_header pac_methods_classcom_1_1google_1_1gson_1_1_json_element"><td colspan="2" onclick="javascript:toggleInherit('pac_methods_classcom_1_1google_1_1gson_1_1_json_element')"><img src="closed.png" alt="-"/>&#160;包函数 继承自 <a class="el" href="classcom_1_1google_1_1gson_1_1_json_element.html">com.google.gson.JsonElement</a></td></tr>
<tr class="memitem:aa893d8dd48c50e0a34cb5e4f3bc770f2 inherit pac_methods_classcom_1_1google_1_1gson_1_1_json_element"><td class="memItemLeft" align="right" valign="top">Boolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1google_1_1gson_1_1_json_element.html#aa893d8dd48c50e0a34cb5e4f3bc770f2">getAsBooleanWrapper</a> ()</td></tr>
<tr class="separator:aa893d8dd48c50e0a34cb5e4f3bc770f2 inherit pac_methods_classcom_1_1google_1_1gson_1_1_json_element"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>A class representing an array type in Json. An array is a list of <a class="el" href="classcom_1_1google_1_1gson_1_1_json_element.html">JsonElement</a>s each of which can be of a different type. This is an ordered list, meaning that the order in which elements are added is preserved.</p>
<dl class="section author"><dt>作者</dt><dd>Inderjeet Singh </dd>
<dd>
Joel Leitch </dd></dl>
</div><h2 class="groupheader">构造及析构函数说明</h2>
<a class="anchor" id="aae937cffc42633a44c9547992aeaf7df"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">com.google.gson.JsonArray.JsonArray </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Creates an empty <a class="el" href="classcom_1_1google_1_1gson_1_1_json_array.html">JsonArray</a>. </p>

</div>
</div>
<h2 class="groupheader">成员函数说明</h2>
<a class="anchor" id="a9ef58e6e4cac5a22327fe55ab36e9ff6"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void com.google.gson.JsonArray.add </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classcom_1_1google_1_1gson_1_1_json_element.html">JsonElement</a>&#160;</td>
          <td class="paramname"><em>element</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Adds the specified element to self.</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">element</td><td>the element that needs to be added to the array. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="af07ce6d3c573731c657cd470c4bd7541"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void com.google.gson.JsonArray.addAll </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classcom_1_1google_1_1gson_1_1_json_array.html">JsonArray</a>&#160;</td>
          <td class="paramname"><em>array</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Adds all the elements of the specified array to self.</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">array</td><td>the array whose elements need to be added to the array. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a5ac4bd4e13f514344c4929d46aab626d"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">boolean com.google.gson.JsonArray.equals </td>
          <td>(</td>
          <td class="paramtype">Object&#160;</td>
          <td class="paramname"><em>o</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a711428c84490ffb511ed73b7a1b1308e"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classcom_1_1google_1_1gson_1_1_json_element.html">JsonElement</a> com.google.gson.JsonArray.get </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>i</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Returns the ith element of the array.</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">i</td><td>the index of the element that is being sought. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>the element present at the ith index. </dd></dl>
<dl class="exception"><dt>异常</dt><dd>
  <table class="exception">
    <tr><td class="paramname">IndexOutOfBoundsException</td><td>if i is negative or greater than or equal to the <a class="el" href="classcom_1_1google_1_1gson_1_1_json_array.html#ade6a26f0014088241820851da693689f">size()</a> of the array. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ae12953398be9ac0f87d9bbfef7ba7956"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">BigDecimal com.google.gson.JsonArray.getAsBigDecimal </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>convenience method to get this array as a <a class="el" href="">BigDecimal</a> if it contains a single element.</p>
<dl class="section return"><dt>返回</dt><dd>get this element as a <a class="el" href="">BigDecimal</a> if it is single element array. </dd></dl>
<dl class="exception"><dt>异常</dt><dd>
  <table class="exception">
    <tr><td class="paramname">ClassCastException</td><td>if the element in the array is of not a <a class="el" href="classcom_1_1google_1_1gson_1_1_json_primitive.html">JsonPrimitive</a>. </td></tr>
    <tr><td class="paramname">NumberFormatException</td><td>if the element at index 0 is not a valid <a class="el" href="">BigDecimal</a>. </td></tr>
    <tr><td class="paramname">IllegalStateException</td><td>if the array has more than one element. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section since"><dt>自从</dt><dd>1.2 </dd></dl>

</div>
</div>
<a class="anchor" id="ac6e4389b3dbfa9347a9c80892c8c77cf"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">BigInteger com.google.gson.JsonArray.getAsBigInteger </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>convenience method to get this array as a <a class="el" href="">BigInteger</a> if it contains a single element.</p>
<dl class="section return"><dt>返回</dt><dd>get this element as a <a class="el" href="">BigInteger</a> if it is single element array. </dd></dl>
<dl class="exception"><dt>异常</dt><dd>
  <table class="exception">
    <tr><td class="paramname">ClassCastException</td><td>if the element in the array is of not a <a class="el" href="classcom_1_1google_1_1gson_1_1_json_primitive.html">JsonPrimitive</a>. </td></tr>
    <tr><td class="paramname">NumberFormatException</td><td>if the element at index 0 is not a valid <a class="el" href="">BigInteger</a>. </td></tr>
    <tr><td class="paramname">IllegalStateException</td><td>if the array has more than one element. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section since"><dt>自从</dt><dd>1.2 </dd></dl>

</div>
</div>
<a class="anchor" id="abc29f7cc7b979096f5cd95e525dd8310"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">boolean com.google.gson.JsonArray.getAsBoolean </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>convenience method to get this array as a boolean if it contains a single element.</p>
<dl class="section return"><dt>返回</dt><dd>get this element as a boolean if it is single element array. </dd></dl>
<dl class="exception"><dt>异常</dt><dd>
  <table class="exception">
    <tr><td class="paramname">ClassCastException</td><td>if the element in the array is of not a <a class="el" href="classcom_1_1google_1_1gson_1_1_json_primitive.html">JsonPrimitive</a> and is not a valid boolean. </td></tr>
    <tr><td class="paramname">IllegalStateException</td><td>if the array has more than one element. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="af9c11bfe3497f748aae1ad3681b73d1d"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">byte com.google.gson.JsonArray.getAsByte </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a1a1767c7a9db1227542d3a00ef4ade17"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">char com.google.gson.JsonArray.getAsCharacter </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a23d3658ce777f947236d168eecee5708"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">double com.google.gson.JsonArray.getAsDouble </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>convenience method to get this array as a double if it contains a single element.</p>
<dl class="section return"><dt>返回</dt><dd>get this element as a double if it is single element array. </dd></dl>
<dl class="exception"><dt>异常</dt><dd>
  <table class="exception">
    <tr><td class="paramname">ClassCastException</td><td>if the element in the array is of not a <a class="el" href="classcom_1_1google_1_1gson_1_1_json_primitive.html">JsonPrimitive</a> and is not a valid double. </td></tr>
    <tr><td class="paramname">IllegalStateException</td><td>if the array has more than one element. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a547332c9be208e377c7f887b9c03d708"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">float com.google.gson.JsonArray.getAsFloat </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>convenience method to get this array as a float if it contains a single element.</p>
<dl class="section return"><dt>返回</dt><dd>get this element as a float if it is single element array. </dd></dl>
<dl class="exception"><dt>异常</dt><dd>
  <table class="exception">
    <tr><td class="paramname">ClassCastException</td><td>if the element in the array is of not a <a class="el" href="classcom_1_1google_1_1gson_1_1_json_primitive.html">JsonPrimitive</a> and is not a valid float. </td></tr>
    <tr><td class="paramname">IllegalStateException</td><td>if the array has more than one element. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a6f052d1fd8702a9d7b66e20d97b27489"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int com.google.gson.JsonArray.getAsInt </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>convenience method to get this array as an integer if it contains a single element.</p>
<dl class="section return"><dt>返回</dt><dd>get this element as an integer if it is single element array. </dd></dl>
<dl class="exception"><dt>异常</dt><dd>
  <table class="exception">
    <tr><td class="paramname">ClassCastException</td><td>if the element in the array is of not a <a class="el" href="classcom_1_1google_1_1gson_1_1_json_primitive.html">JsonPrimitive</a> and is not a valid integer. </td></tr>
    <tr><td class="paramname">IllegalStateException</td><td>if the array has more than one element. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="aa67748d4dacff98daa36672c44953fda"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">long com.google.gson.JsonArray.getAsLong </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>convenience method to get this array as a long if it contains a single element.</p>
<dl class="section return"><dt>返回</dt><dd>get this element as a long if it is single element array. </dd></dl>
<dl class="exception"><dt>异常</dt><dd>
  <table class="exception">
    <tr><td class="paramname">ClassCastException</td><td>if the element in the array is of not a <a class="el" href="classcom_1_1google_1_1gson_1_1_json_primitive.html">JsonPrimitive</a> and is not a valid long. </td></tr>
    <tr><td class="paramname">IllegalStateException</td><td>if the array has more than one element. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a70803c437430feb3c2c8db47bf2cd730"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">Number com.google.gson.JsonArray.getAsNumber </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>convenience method to get this array as a <a class="el" href="">Number</a> if it contains a single element.</p>
<dl class="section return"><dt>返回</dt><dd>get this element as a number if it is single element array. </dd></dl>
<dl class="exception"><dt>异常</dt><dd>
  <table class="exception">
    <tr><td class="paramname">ClassCastException</td><td>if the element in the array is of not a <a class="el" href="classcom_1_1google_1_1gson_1_1_json_primitive.html">JsonPrimitive</a> and is not a valid Number. </td></tr>
    <tr><td class="paramname">IllegalStateException</td><td>if the array has more than one element. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a16186e285b35c1740b7a7cc046307640"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">short com.google.gson.JsonArray.getAsShort </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>convenience method to get this array as a primitive short if it contains a single element.</p>
<dl class="section return"><dt>返回</dt><dd>get this element as a primitive short if it is single element array. </dd></dl>
<dl class="exception"><dt>异常</dt><dd>
  <table class="exception">
    <tr><td class="paramname">ClassCastException</td><td>if the element in the array is of not a <a class="el" href="classcom_1_1google_1_1gson_1_1_json_primitive.html">JsonPrimitive</a> and is not a valid short. </td></tr>
    <tr><td class="paramname">IllegalStateException</td><td>if the array has more than one element. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="af9152df211f288c8b1b608894f036f4b"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">String com.google.gson.JsonArray.getAsString </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>convenience method to get this array as a <a class="el" href="">String</a> if it contains a single element.</p>
<dl class="section return"><dt>返回</dt><dd>get this element as a String if it is single element array. </dd></dl>
<dl class="exception"><dt>异常</dt><dd>
  <table class="exception">
    <tr><td class="paramname">ClassCastException</td><td>if the element in the array is of not a <a class="el" href="classcom_1_1google_1_1gson_1_1_json_primitive.html">JsonPrimitive</a> and is not a valid String. </td></tr>
    <tr><td class="paramname">IllegalStateException</td><td>if the array has more than one element. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="add0c429ea355f262b0b72a81fdbcead8"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int com.google.gson.JsonArray.hashCode </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a0852e63f04b2127d923a56f8806b7423"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">Iterator&lt;<a class="el" href="classcom_1_1google_1_1gson_1_1_json_element.html">JsonElement</a>&gt; com.google.gson.JsonArray.iterator </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Returns an iterator to navigate the elemetns of the array. Since the array is an ordered list, the iterator navigates the elements in the order they were inserted.</p>
<dl class="section return"><dt>返回</dt><dd>an iterator to navigate the elements of the array. </dd></dl>

</div>
</div>
<a class="anchor" id="ade6a26f0014088241820851da693689f"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int com.google.gson.JsonArray.size </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Returns the number of elements in the array.</p>
<dl class="section return"><dt>返回</dt><dd>the number of elements in the array. </dd></dl>

</div>
</div>
<h2 class="groupheader">类成员变量说明</h2>
<a class="anchor" id="a59c7df12b10d6aa0cf4a9b9b98c7d595"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">final List&lt;<a class="el" href="classcom_1_1google_1_1gson_1_1_json_element.html">JsonElement</a>&gt; com.google.gson.JsonArray.elements</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>src/com/google/gson/<a class="el" href="_json_array_8java.html">JsonArray.java</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
生成于 2014年 十一月 6日 星期四 11:22:04 , 为 AndBase开发框架使用  &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.8
</small></address>
</body>
</html>
